const dbName = 'qxp';
const dbPath = '_doc/qxp.db';

export default{
	
	creatDatabase(){
		let isOpen = plus.sqlite.isOpenDatabase({
			name:dbName,
			path: dbPath
		})
		return new Promise((resolve,reject)=>{
			plus.sqlite.openDatabase({
				name:dbName,
				path:dbPath,
				success:resolve,
				fail:reject
			})
		})
	}
}